package com.zhiyou100.springbootreidsquartz.controller;


import com.zhiyou100.springbootreidsquartz.pojo.Actor;
import com.zhiyou100.springbootreidsquartz.service.IActorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ActorController {
    @Autowired
    private IActorService actorService;

    @GetMapping("actors")
    private List<Actor> actors() {

        return actorService.queryAll();
    }
}
